Ext.define('AmpleHarvest.views.system.main',
{
    extend          : 'Ext.panel.Panel',
    alias           : 'widget.ampleharvest-views-system-main',
    title           : 'System Status',

    requires        :
    [

    ],

    anchor          : '100% 100%',
    layout          : 'border',
    
//    str_form_path	: 'AmpleHarvest.objects.forms.osSearch', // default
	listeners		:
	{
		200	: function(obj_response, str_path)
		{
			console.log(str_path);
			console.log(obj_response);
		},
		
		404	: function(obj_response, str_path)
		{
			console.log('404');
			console.log(str_path);
			console.log(obj_response);
			
		},
		
		500	: function(obj_response, str_path)
		{
			console.log(str_path);
			console.log(obj_response);
		},
		
		ajaxFailure : function(obj_response, str_path)
		{
			console.log('ajaxFailure');
			console.log(str_path);
			console.log(obj_response);
		},
		
		beforedestory	: function(obj_self)
		{
			obj_self.m_obj_util.destroy();
		}
	},
    
    initComponent   : function()
    {
    	this.m_obj_util = Ext.create('AmpleHarvest.util.utility_status');
		this.m_obj_util.AHcaller = this;
		
		this.m_obj_util.getData('/solr-os-base/', {}, {},'GET', {}, {});
		this.m_obj_util.getData('/solr-ge-base-old/', {}, {},'GET', {}, {});
		this.m_obj_util.getData('/solr-ge-base/', {}, {},'GET', {}, {});
		this.m_obj_util.getData('/tpds_services/', {}, {},'GET', {}, {});
		
        this.items =
        [
        ]
        this.callParent();
    }
});


